import 'dart:ui';

import 'package:flutter/material.dart';

/// 附件简历界面
class AttachmentResume extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    Widget childList = new Container(
      margin: EdgeInsets.fromLTRB(15, 25, 15, 15),
      child: new Column(
        children: <Widget>[
          new Row(
            children: <Widget>[
              new ClipRRect(
                borderRadius: BorderRadius.all(Radius.circular(3)),
                child: new Image.asset(
                  "images/ic_word.jpg",
                  width: 50,
                  height: 50,
                ),
              ),
              Expanded(
                child: new Container(
                  margin: EdgeInsets.fromLTRB(10, 0, 0, 0),
                  child: new Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: <Widget>[
                      new Text(
                        "董斌斌Android简历天津.docx",
                        style: TextStyle(fontSize: 16),
                      ),
                      new Container(
                        margin: EdgeInsets.fromLTRB(0, 10, 0, 0),
                        child: new Text(
                          "2019.05.30上传",
                          style: TextStyle(fontSize: 12, color: Colors.black45),
                        ),
                      )
                    ],
                  ),
                ),
              ),
              new Image.asset(
                "images/ic_more.png",
                width: 25,
                height: 25,
              ),
            ],
          ),
          new Container(
            margin: EdgeInsets.fromLTRB(0, 15, 0, 0),
            color: Colors.black12,
            height: 0.5,
            child: new Row(),
          ),
        ],
      ),
    );

    return new Scaffold(
      appBar: new AppBar(
        elevation: 2,
        title: new Text(
          "附件简历",
          style: TextStyle(color: Colors.black, fontSize: 18),
        ),
        centerTitle: true,
        brightness: Brightness.light,
        backgroundColor: Colors.white,
//        leading: Icon(Icons.arrow_back_ios),
        iconTheme: IconThemeData(color: Colors.black),
      ),
      body: new Column(
        children: <Widget>[
          Expanded(
            child: new ListView(
              children: <Widget>[childList],
            ),
          ),
          new Container(
            color: Colors.black12,
            height: 0.5,
            child: new Row(),
          ),
          new Container(
            decoration: new BoxDecoration(
                color: Colors.lightBlue,
                borderRadius: new BorderRadius.all(Radius.circular(3.0))),
            margin: EdgeInsets.fromLTRB(12, 12, 12, 12),
            padding: EdgeInsets.fromLTRB(12, 12, 12, 12),
            child: new Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                Text(
                  "上传附件简历",
                  style: TextStyle(fontSize: 18, color: Colors.white),
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
